package com.ruoyi.fankui.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.fankui.mapper.FankuiMapper;
import com.ruoyi.fankui.domain.Fankui;
import com.ruoyi.fankui.service.IFankuiService;
import com.ruoyi.common.core.text.Convert;

/**
 * 审核反馈Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-04-06
 */
@Service
public class FankuiServiceImpl implements IFankuiService 
{
    @Autowired
    private FankuiMapper fankuiMapper;

    /**
     * 查询审核反馈
     * 
     * @param id 审核反馈主键
     * @return 审核反馈
     */
    @Override
    public Fankui selectFankuiById(Long id)
    {
        return fankuiMapper.selectFankuiById(id);
    }

    /**
     * 查询审核反馈列表
     * 
     * @param fankui 审核反馈
     * @return 审核反馈
     */
    @Override
    public List<Fankui> selectFankuiList(Fankui fankui)
    {
        return fankuiMapper.selectFankuiList(fankui);
    }

    /**
     * 新增审核反馈
     * 
     * @param fankui 审核反馈
     * @return 结果
     */
    @Override
    public int insertFankui(Fankui fankui)
    {
        return fankuiMapper.insertFankui(fankui);
    }

    /**
     * 修改审核反馈
     * 
     * @param fankui 审核反馈
     * @return 结果
     */
    @Override
    public int updateFankui(Fankui fankui)
    {
        return fankuiMapper.updateFankui(fankui);
    }

    /**
     * 批量删除审核反馈
     * 
     * @param ids 需要删除的审核反馈主键
     * @return 结果
     */
    @Override
    public int deleteFankuiByIds(String ids)
    {
        return fankuiMapper.deleteFankuiByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除审核反馈信息
     * 
     * @param id 审核反馈主键
     * @return 结果
     */
    @Override
    public int deleteFankuiById(Long id)
    {
        return fankuiMapper.deleteFankuiById(id);
    }
}
